package org.lanqiao.ssm.common.core.facede.base;

import java.io.Serializable;

import org.lanqiao.ssm.common.core.service.BaseServiceI;
import org.lanqiao.ssm.common.facede.BaseManagerFacedeI;

public abstract class BaseManagerFacede<E,ID extends Serializable> implements
		BaseManagerFacedeI<E,ID> {
	public abstract BaseServiceI<E, ID> getService();

	public int deleteByPrimaryKey(ID id) {
		return getService().deleteByPrimaryKey(id);
	}

	public int insert(E record) {
		return getService().insert(record);
	}

	public int insertSelective(E record) {
		return getService().insertSelective(record);
	}

	public int updateByPrimaryKeySelective(E record) {
		return getService().updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(E record) {
		return getService().updateByPrimaryKey(record);
	}

}
